﻿<%@ Page Language="C#" MasterPageFile="~/HotelMain.master" AutoEventWireup="true"
    CodeFile="HotelList.aspx.cs" Inherits="HotelList" Title="酒店预订_在线酒店预订_成都市区酒店预订_四川旅游景区酒店预订_成都酒店预订网|下驿栈旅游网" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script language="javascript">    
       function gotoOrder(obj) {
                $.ajax({
                    url: 'MyHandder/CheckLogin.ashx',
                    type: 'GET',
                    dataType: 'html',
                    timeout: 10000,
                    error: function(data) {
                        alert('网络超时:' + data);
                    },
                    success: function(xml) {
                        if (xml == 0) {
                        alert("请先登录！");
                       // tipsWindown(" ","iframe:Login.aspx?myurl=OrderHotel.aspx?Key="+obj+","800","400","true","","false","text");
                       } else {
                           window.location = 'OrderHotel.aspx?Key='+obj;
                        }

                    }
                });
            }
                </script>
    <div class="jdb">
        <asp:Repeater ID="rptContent" runat="server">
            <ItemTemplate>
                <div class="jdb1">
                    <div class="pic4">
                        <a href='HotelInfo.aspx?Key=<%#Eval("id") %>' target="_blank">
                            <img src='<%#GetPic(Eval("imagePath")) %>' title=' <%#Eval("title") %>' width="137"
                                style="border: none;" height="98" /></a></div>
                    <div class="jsb">
                        <p>
                            <span class="mcb">
                                <%#Eval("title") %></span> <span class="jgb">特 价 房：<span class="smb">
                                    <%#Eval("price")%></span>元/晚</span></p>
                        <p>
                            <table style="border-collapse:0px; border-spacing:0px;" border="0" 
                                    cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        星级标准：
                                    </td>
                                    <td>
                                        <div style="background-repeat: repeat-x; background-image: url(images/xing.jpg);
                                            background-position: left; width: <%# SetStarWidth(Eval("starNum")) %>px; height: 12px;
                                            border: 0px;">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </p>
                        <p>
                            <span class="jieb">【酒店地址】</span><%#Eval("address")%> </span><span  onclick='gotoOrder(<%#Eval("id")%>)' class="smb" style="float:right; cursor:hand;">
                                   在线预定</span></p>
                        <p>
                            <span class="jieb">【酒店介绍】</span><%#TFXK.Common.StrHelper.CutString(TFXK.Common.StrHelper.checkStr(Eval("hotelDes") + ""), 140)%>[
                            <a href='HotelInfo.aspx?Key=<%#Eval("id") %>'  target="_blank">查看详情</a>]</p>
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <div class="yema">
        <webdiyer:AspNetPager CssClass="anpager" CurrentPageButtonClass="cpb" ID="AspNetPager1"
            HorizontalAlign="Center" runat="server" AlwaysShow="false" FirstPageText="首页"
            Font-Size="12px" LastPageText="尾页" NextPageText="下一页" PageSize="8" PrevPageText="上一页"
            ShowBoxThreshold="11" TextAfterPageIndexBox="" TextBeforePageIndexBox="" UrlPaging="true"
            OnPageChanging="AspNetPager1_PageChanging">
        </webdiyer:AspNetPager>
        <span class="yema2">
            <img src="images/chujing_65.jpg" width="14" height="13" /><a href="#" onclick="window.scrollTo(0,0);">回到顶部</a></span>
    </div>
</asp:Content>
